<%@ tag language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<s:set var="SUCCESS_MESSAGE" value="%{#request.SUCCESS_MESSAGE}" />
<s:set var="WARNING_MESSAGE" value="%{#request.WARNING_MESSAGE}" />
<s:set var="INFO_MESSAGE" value="%{#request.INFO_MESSAGE}" />
<s:set var="DANGER_MESSAGE" value="%{#request.DANGER_MESSAGE}" />
<s:set var="WAITING" value="%{#session.WAITING}" />

<s:if test="%{#SUCCESS_MESSAGE != null}">
	<div class="alert alert-success alert-dismissable" style="text-align: center;">
	  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	  <strong>${SUCCESS_MESSAGE}</strong> 
	</div>
</s:if>
<s:if test="%{#WAITING != null}">
	<div class="alert alert-success alert-dismissable" style="text-align: center;">
	  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	  <strong>${WAITING}</strong> 
	</div>
</s:if>
<s:if test="%{#WARNING_MESSAGE != null}">
	<div class="alert alert-warning alert-dismissable" style="text-align: center;">
	  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	  <strong>${WARNING_MESSAGE}</strong> 
	</div>
</s:if>
<s:if test="%{#INFO_MESSAGE != null}">
	<div class="alert alert-info alert-dismissable" style="text-align: center;">
	  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	  <strong>${INFO_MESSAGE}</strong> 
	</div>
</s:if>
<s:if test="%{#DANGER_MESSAGE != null}">
	<div class="alert alert-danger alert-dismissable" style="text-align: center;">
	  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
	  <strong>${DANGER_MESSAGE}</strong> 
	</div>
</s:if>
